package com.yxm.test.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;

@Component
@RefreshScope
@Data
public class CommonConfig {

    @Value(value = "${spring.datasource.username}")
    private String username;

    @Value(value = "${timeout}")
    private Integer timeout;

    @Value("${server.port}")
    private String port;
}
